home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIProxiedProtocolHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  99 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIProxiedProtocolHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIProxiedProtocolHandler_h__
  6. #define __gen_nsIProxiedProtocolHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsIProtocolHandler_h__
  10. #include "nsIProtocolHandler.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIChannel; /* forward declaration */
  18.  
  19. class nsIURI; /* forward declaration */
  20.  
  21. class nsIProxyInfo; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIProxiedProtocolHandler */
  25. #define NS_IPROXIEDPROTOCOLHANDLER_IID_STR "0a24fed4-1dd2-11b2-a75c-9f8b9a8f9ba7"
  26.  
  27. #define NS_IPROXIEDPROTOCOLHANDLER_IID \
  28.   {0x0a24fed4, 0x1dd2, 0x11b2, \
  29.     { 0xa7, 0x5c, 0x9f, 0x8b, 0x9a, 0x8f, 0x9b, 0xa7 }}
  30.  
  31. class NS_NO_VTABLE nsIProxiedProtocolHandler : public nsIProtocolHandler {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROXIEDPROTOCOLHANDLER_IID)
  35.  
  36.   /** Create a new channel with the given proxyInfo
  37.      *
  38.      */
  39.   /* nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo); */
  40.   NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, nsIChannel **_retval) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIPROXIEDPROTOCOLHANDLER \
  46.   NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, nsIChannel **_retval); 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  49. #define NS_FORWARD_NSIPROXIEDPROTOCOLHANDLER(_to) \
  50.   NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, nsIChannel **_retval) { return _to NewProxiedChannel(uri, proxyInfo, _retval); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIPROXIEDPROTOCOLHANDLER(_to) \
  54.   NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, nsIChannel **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewProxiedChannel(uri, proxyInfo, _retval); } 
  55.  
  56. #if 0
  57. /* Use the code below as a template for the implementation class for this interface. */
  58.  
  59. /* Header file */
  60. class nsProxiedProtocolHandler : public nsIProxiedProtocolHandler
  61. {
  62. public:
  63.   NS_DECL_ISUPPORTS
  64.   NS_DECL_NSIPROXIEDPROTOCOLHANDLER
  65.  
  66.   nsProxiedProtocolHandler();
  67.  
  68. private:
  69.   ~nsProxiedProtocolHandler();
  70.  
  71. protected:
  72.   /* additional members */
  73. };
  74.  
  75. /* Implementation file */
  76. NS_IMPL_ISUPPORTS1(nsProxiedProtocolHandler, nsIProxiedProtocolHandler)
  77.  
  78. nsProxiedProtocolHandler::nsProxiedProtocolHandler()
  79. {
  80.   /* member initializers and constructor code */
  81. }
  82.  
  83. nsProxiedProtocolHandler::~nsProxiedProtocolHandler()
  84. {
  85.   /* destructor code */
  86. }
  87.  
  88. /* nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo); */
  89. NS_IMETHODIMP nsProxiedProtocolHandler::NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, nsIChannel **_retval)
  90. {
  91.     return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93.  
  94. /* End of implementation class template. */
  95. #endif
  96.  
  97.  
  98. #endif /* __gen_nsIProxiedProtocolHandler_h__ */
  99.